﻿using Swimj.DomainLib.Entities;

namespace BaseData.DomainLib.AggregatesModel.CustomerAggregate
{
    public class Customer : AuditableAggregateRoot<int>
    {
        public string? Code { get; set; }

        public string? Name { get; set; }

        public string? Phone { get; set; }

        public string? Email { get; set; }

        public string? Address { get; set; }

        public string? Description { get; set; }


        public Customer(string? code, string? name, string? phone, string? email, string? address, string? description)
        {
            Code = code;
            Name = name;
            Phone = phone;
            Email = email;
            Address = address;
            Description = description;
        }

        public void Update(string? name, string? phone, string? email, string? address, string? description)
        {
            Name = name;
            Phone = phone;
            Email = email;
            Address = address;
            Description = description;
        }

    }
}